<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="../Templates/templateLeftMenu.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui" 
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:c="http://java.sun.com/jsp/jstl/core">
    <ui:define name="content">

        <center>
            <h:form id="con">
                <p:panel header="Registrar Control">

                    <h:form id="formRC">

                        <h:panelGrid columns="2" cellpadding="10"> 
                            <h:outputText value="Descripcion"/>
                            <p:inputTextarea cols="50" rows="4" value="#{selectMascotaBean.control.descripcion}" />

                            <h:outputText value="Estado"/>
                            <p:inputTextarea value="#{selectMascotaBean.control.estado}" cols="50" rows="4"  />

                            <h:outputText value="PostCondiciones"/>
                            <p:inputTextarea cols="50" rows="4" value="#{selectMascotaBean.control.postcondicion}" />
                            
                            <h:outputText value="Recomendacion"/>
                            <p:inputTextarea value="#{selectMascotaBean.control.recomendacion}" cols="50" rows="4"  />

                        </h:panelGrid>

                        <h:panelGrid columns="2" cellpadding="5">

                            <p:commandButton actionListener="#{selectMascotaBean.saveControl()}" value="Guardar"></p:commandButton>
                            <p:commandButton actionListener="#{selectMascotaBean.clearControl}" value="Cancelar"></p:commandButton>
                        </h:panelGrid>
                    </h:form>

                </p:panel>
            </h:form>

        </center>


    </ui:define>
</ui:composition>

